IF NOT EXISTS (SELECT 1 FROM sys.objects
					 WHERE type ='u' AND object_id = OBJECT_ID('MD3.DefaultConstraints'))
BEGIN
	
	CREATE TABLE MD3.DefaultConstraints
	   (Id              BIGINT IDENTITY(1,1) NOT NULL
	   ,TableName		VARCHAR(255) NOT NULL
	   ,SchemaName		VARCHAR(255) NOT NULL
	   ,ConstraintName	VARCHAR(255) NOT NULL
	   ,ConstraintExpression	VARCHAR(4000) NOT NULL
	   ,ColumnName		VARCHAR(255) NULL
	   ,DropConstraint BIT NOT NULL
	);
	   
	ALTER TABLE MD3.DefaultConstraints ADD CONSTRAINT DefaultConstraintsPK 
	PRIMARY KEY CLUSTERED (Id);
		
END 
--drop table MD3.DefaultConstraints
